package TestObjects;

import java.awt.Polygon;
import java.util.ArrayList;

import GameObjects.Instances.Instance;
import GameObjects.Instances.Instances;
import GameObjects.Physics.Position;
import GameObjects.Ships.Engines.ShipEngine;

public class TestEngine extends ShipEngine 
{
	private static final Instances instances = makeInstances();
	
	public TestEngine(Position position) 
	{
		super(instances, position, /*health*/100, /*speed*/1, /*rotateSpeed*/0.5, /*EnergyCost*/0.1);
	}

	private static Instances makeInstances()
	{
		Polygon bounds = new Polygon();
		bounds.addPoint(0, 0);
		bounds.addPoint(200, 0);
		bounds.addPoint(200, 20);
		bounds.addPoint(0, 20);
		Instance inst = new Instance(null, 200, 20, bounds);
		ArrayList<Instance> instsa = new ArrayList<Instance>();
		instsa.add(inst);
		return new Instances(instsa, 1);
	}
}
